<?php
namespace Admin\Controller;
use Common\Controller\CommonController;

class CategoryController extends CommonController {

	public function listAction(){
		$this->display();
	}

	public function addAction(){

		if(!empty($_POST)){
			$goods = new \Model\GoodsModel();

			$goods->goods_name = $_POST['goods_name'];
			$goods->goods_price = $_POST['goods_price'];
			if($goods->add()){
				$this->display('list');
			}

		}else{
			$this->display();
		}
	}

	public function editAction(){
		$this->display();
	}


}





?>